package gulimall.feign;

import gulimall.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 远程调用第三方应用的service
 *
 * @author HLF
 * @date 2022/7/31 15:12
 */
@Service
@FeignClient(value = "gulimall-third-party")
public interface ThirdPartyFeignService {


    @GetMapping("/sms/sendCode")
    R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
